var limsEquipmentCertificate = Gikam.getPageObject({

    /**
     * 审核记录
     */
    getFlowListColumns: function () {
        return [{
            index: true
        }, {
            title: 'CORE.MODULE.SYS.T_CORE_BPMN_DIAGRAM.CANDIDATOR.TASKNAME',
            field: 'taskName',
        }, {
            title: 'CORE.MODULE.SYS.T_CORE_BPMN_DIAGRAM.CANDIDATOR.USER',
            field: 'auditedByName'
        }, {
            title: 'T_CORE_INTERNAL_AUDIT.AUDITDATE',
            field: 'auditedTime',
            width: 140
        }, {
            title: 'GIKAM.WORKFLOW.PASS.OPINION.TITLE',
            field: 'comment',
            width: 300
        }, {
            title: 'CORE.MODULE.SYS.T_CORE_BPMN_DIAGRAM.COMMENT.ROUTE',
            field: 'route',
            width: 140
        }]
    },

    getEditListColumns : function() {
        return [ {
            checkbox : true
        }, {index: true},{
            field : 'ext$.equipcode',
            title : 'T_LIMS_EQUIPMENT.EQUIPCODE',
            readonly : true
        }, {
            field : 'ext$.fixedassetnum',
            title : 'T_LIMS_EQUIPMENT.FIXEDASSETNUM',
            readonly : true
        }, {
            field : 'ext$.equipname',
            title : 'T_LIMS_EQUIPMENT.EQUIPNAME',
            readonly : true
        }, {
            field : 'certdate',
            title : 'T_LIMS_METHOD_CERTIFICATE.CERTDATE',
            type:'date',
            editor: true,
            validators : ['notEmpty'],
        }, {
            field : 'expdate',
            title : 'T_LIMS_METHOD_CERTIFICATE.EXPDATE',
            type:'date',
            editor: true,
            validators : ['notEmpty'],
        }, ];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'certdate',
            title : 'T_LIMS_METHOD_CERTIFICATE.CERTDATE',
            type:'date',
            preInsert : true,
            validators : ['notEmpty'],
        }, {
            field : 'expdate',
            title : 'T_LIMS_METHOD_CERTIFICATE.EXPDATE',
            type:'date',
            preInsert : true,
            validators : ['notEmpty'],
        }];
    },

    getAuditListColumns : function() {
        return [ {
            checkbox : true
        }, {index: true},Gikam.status.getBpmnColumn(limsEquipmentCertificate.workflow.dbTable), {
            field : 'personId',
            title : 'T_LIMS_EQUIPMENT_CERTIFICATE.PERSONID'
        }, {
            field : 'eqId',
            title : 'T_LIMS_EQUIPMENT_CERTIFICATE.EQID'
        } ];
    },

    getSearchListColumns : function() {
        return [ {
            checkbox : true
        },{index: true}, Gikam.status.getBpmnColumn(limsEquipmentCertificate.workflow.dbTable), {
            field : 'personId',
            title : 'T_LIMS_EQUIPMENT_CERTIFICATE.PERSONID'
        }, {
            field : 'eqId',
            title : 'T_LIMS_EQUIPMENT_CERTIFICATE.EQID'
        } ];
    },

    getChooseListColumns : function() {
        return [ {index: true},{
            field : 'personId',
            title : 'T_LIMS_EQUIPMENT_CERTIFICATE.PERSONID'
        }, {
            field : 'eqId',
            title : 'T_LIMS_EQUIPMENT_CERTIFICATE.EQID'
        } ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/rm/equipment-certificates',

    workflow : {
        dbTable : 'T_LIMS_EQUIPMENT_CERTIFICATE',
        columns : [ {
            field : 'id',
            title : 'T_LIMS_EQUIPMENT_CERTIFICATE.ID'
        } ]
    }

});
